package server;

import java.util.LinkedHashMap;
import java.util.LinkedList;

/**
 * User: tum0r
 * Package Name: server
 * Time: 2019-03-10 Sunday 21:27:16
 */
public class LogoutServer extends BaseServer {
    public boolean logout(String username) {
        return sql.update("delete from login where user_name=?", new Object[]{username}) != 0;
    }

    public LinkedList<LinkedHashMap<String, Object>> getUserInfo(String username){
        return sql.query("select user_id,user_type from login where user_name=?",new Object[]{username});
    }
}
